Skip to content

feat(theme): map shadcn_colors to ColorScheme (#100) - #131

Merged
ZhuchkaTriplesix merged 4 commits into
devfrom
issue/100-querya-theme-color-scheme
Jun 13, 2026
Merged

feat(theme): map shadcn_colors to ColorScheme (#100)#131
ZhuchkaTriplesix merged 4 commits into
devfrom
issue/100-querya-theme-color-scheme

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Add colorSchemeFromQueryaThemeColors to convert Querya custom shadcn_colors into shadcn ColorScheme.
  • Missing keys and invalid optional colors fall back to QueryaTheme.colorScheme.
  • Brightness always comes from the fallback theme.

Test plan

  • flutter test test/core/theme/parser/querya_theme_color_scheme_test.dart

Closes #100

Add colorSchemeFromQueryaThemeColors with parseQueryaThemeColor parsing,
fallback to QueryaTheme.colorScheme, and debug logs for unknown/invalid keys.
@github-actions github-actions Bot added theme Theming, colors, VS Code themes parser Theme parser epic label: parser labels Jun 13, 2026
@github-actions github-actions Bot added this to the Theme system milestone Jun 13, 2026
Shadcn still exposes the legacy field; keep mapping querya.theme.v1 key with
targeted ignore comments for read and constructor use.
Dart ignore comments only apply to the immediately following line.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 689f80a into dev Jun 13, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/100-querya-theme-color-scheme branch June 15, 2026 04:13
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
…cheme

feat(theme): map shadcn_colors to ColorScheme (#100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parser Theme parser epic label: parser theme Theming, colors, VS Code themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant